import jakarta.servlet.http.HttpServlet
import jakarta.servlet.http.HttpServletRequest
import jakarta.servlet.http.HttpServletResponse
import java.io.PrintWriter

class DemoHttpServlet:HttpServlet() {
    override fun doGet(req: HttpServletRequest?, resp: HttpServletResponse?) {
        resp?.contentType = "text/html;charset=utf-8"
        val out: PrintWriter? = resp?.writer
        out?.println("这是httpservlet的doGet")
        //log("this is a log")
        //req?.session
    }
}